import { createParamDecorator } from '@nestjs/common';

export const Where = createParamDecorator((data, req) => {
  const where =  req.query.where || '{}';
  return JSON.parse(where);
});
